@extends('home.m.m2.public.public')

@section('content')
    <div class="sidebar">
        <div class="sb_nav">
            <h3 class='title'>
                <p class="moresidebar">更多分类</p>
                新闻资讯
            </h3>
        </div>
        <div class="sb_box">
            <div class="active ajaxlist" id="newslist">
                <ul>
                    @if(!empty($infos))
                        @foreach($infos as $value)
                            <li>
                                <a href="{{ route('info',['new',$value['id']]) }}">
                                    <h4><p class="t">{{ $value['name'] }}</p>
                                        <p class="time">{{ $value['time'] }}</p></h4>
                                    <span class="more"></span>
                                </a>
                            </li>
                        @endforeach
                    @else
                        <div class="noinfo">暂无资料!</div>
                    @endif
                </ul>
                <div class="pagelist">
                    {{ $infos->links() }}
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="sidebar_jsbox none"></div>
    <div id="sidebar" class="none" data-csnow="2" data-class3="0">
        <h3 class="title">新闻资讯</h3>
        <div id="wrapper_sidebar">
            <div id="scroller_sidebar">
                <foreach name="m_sort['new']" item="vo" key="k">
                    <dl class="list-none navnow">
                        <dt id='part2_4'><a href='/{$vo.mod}/{$vo.id}.html' title='{$vo.name}' class="zm"><span>{$vo.name}</span></a>
                        </dt>
                    </dl>
                </foreach>
            </div>
        </div>
    </div>
@endsection